<template> 
    <div>
            <h1>子组件向父组件传递参数2222</h1>
            {{param}}
            <son @toparent="getMethod"></son>
            
    </div> 
  </template>
  <script>
    import Son from './Son'
    export default {
      name: 'addAdmin',
      components: { Son },
      data(){
          return{
            param: ''
          }
      },
      methods: {
        getMethod(val){ 
          this.param = val
          console.log(this.param)
        }
      },
    }
  </script>
  <style>
  </style>
  
  
  